package com.joysuch.wwyt.core.service;

import com.joysuch.wwyt.core.security.ShiroUser;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

public interface BaseLoginService {


    ModelAndView doLogin(String name, String key, HttpServletRequest request);

    Object logout(HttpServletRequest request);

    ModelAndView doLoginByUserCode(String code, HttpServletRequest request);

    ModelAndView loginSuccess(HttpServletRequest request, ShiroUser shiroUser, String userName, String companyCode, String clientId);

    ModelAndView loginFailed(HttpServletRequest request, String string, String userName, String companyCode);
}
